package lab10;

public class XYDemo {
	public static void main(String[] args) {
		X x1 = new X();
		X x2 = new Y();
		Y y1 = new Y();
		
		y1= (Y)x1;
	}
}